﻿<ResourceDictionary
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  xmlns:local="clr-namespace:Oxage.Controls">

  <!-- Dual axis controller -->
  <Style TargetType="{x:Type local:DualAxisController}">
    <Setter Property="Template">
      <Setter.Value>
        <ControlTemplate TargetType="{x:Type local:DualAxisController}">
          <Grid Background="Transparent">
            <Border x:Name="Area" Height="320" Margin="10" BorderThickness="3" BorderBrush="#808080" Background="#0C808080" Width="320" CornerRadius="160" HorizontalAlignment="Center" VerticalAlignment="Center">
              <Grid IsHitTestVisible="False">
                <Border Width="220" Height="220" Background="#33808080" CornerRadius="110">
                  <Border Width="50" Height="50" Background="#33808080" CornerRadius="25">
                  </Border>
                </Border>
                <Path Data="{TemplateBinding SpringGeometry}" Stretch="None" StrokeThickness="2" Stroke="Lime" HorizontalAlignment="Left" VerticalAlignment="Top" />
                <Border x:Name="Nipple" Width="20" Height="20" Background="#808080" CornerRadius="10" HorizontalAlignment="Left" VerticalAlignment="Top" />
              </Grid>
            </Border>
            <Path Data="M0,0 L320,0" Width="320" Stretch="Fill" StrokeThickness="2" Stroke="#80808080" StrokeDashArray="5 2" IsHitTestVisible="False" />
            <Path Data="M0,0 L0,320" Height="320" Stretch="Fill" StrokeThickness="2" Stroke="#80808080" StrokeDashArray="5 2" IsHitTestVisible="False" />
          </Grid>
        </ControlTemplate>
      </Setter.Value>
    </Setter>
  </Style>

</ResourceDictionary>
